package com.neu.af.dataFilter.mapper;

import com.neu.af.dataFilter.entity.User;
import com.neu.af.dataFilter.entity.UserExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    int countByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);
    int updateByName(User example);
    int updateByPrimaryKey(User example);
    int updateByPrimaryKeySelective(User example);
    List<User> selectByExample(UserExample example);
    List<User> selectByName(String name);
    int selectByNameUnique(String name);
    int selectByNameUniqueExpectId(Map<String, Object> data);
    User selectByNamePassword(Map<String, Object> data);
}